//
//  MDetailPhotoCollectionCell.m
//  ShareElectricity
//
//  Created by sunsoft on 2017/9/13.
//  Copyright © 2017年 sunnsoft.HH. All rights reserved.
//

#import "MDetailPhotoCollectionCell.h"

@implementation MDetailPhotoCollectionCell

-(instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        [self createWithFrame:frame];
    }
    return self;
}
-(void)createWithFrame:(CGRect)frame{

    _PhotoImage = [UIImageView new];
    _PhotoImage.contentMode = UIViewContentModeScaleAspectFill;
    _PhotoImage.clipsToBounds = YES;
    [self.contentView addSubview:_PhotoImage];
    [_PhotoImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
        make.width.mas_equalTo(70);
        make.height.mas_equalTo(70);
    }];
    
    _CheckMoreLabel = [UILabel new];
    _CheckMoreLabel.textColor = [UIColor whiteColor];
    _CheckMoreLabel.font = HHFont(13);
    _CheckMoreLabel.hidden = YES;
    [self.contentView addSubview:_CheckMoreLabel];
    [_CheckMoreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
    }];
}
@end
